package com.jvm.gc;

/**
 * @Author RJA
 * @Date 2020/4/3 15:50
 * @Description
 *
 * -verbose:gc -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:+PrintCommondLineFlags -XX:+SurvivorRatio=8 -XX:MaxTenuringThreshold=5 -XX:+PrintTenuringDistribution
 */
public class MyTest3 {
    public static void main(String[] args) {
        int size = 1024 * 1024;

        byte[] myAllocl1 = new byte[2 * size];
        byte[] myAllocl2 = new byte[2 * size];
        byte[] myAllocl3 = new byte[2 * size];
        byte[] myAllocl4 = new byte[2 * size];

        System.out.println("hello world");
    }
}
